package com.mycat.task.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/3/28.
 */
@Component
public class TestJob {

    public TestJob(){
        System.out.println("初始化定时任务......................TestJob");
    }

    @Scheduled(cron = "0/10 * * * * ?")
    public void firstJob(){
        System.out.println("这是第一个Job");
    }

}
